package com.wuming.caiwu.service;


import com.wuming.caiwu.core.BusinessException;
import com.wuming.caiwu.model.QsgOrderSharingDetail;

import java.util.List;

/**
 * 分账明细服务
 * Created by hanfei on 16/4/19.
 */
public interface QsgOrderSharingDetailService {

    /**
     * 分页查询分账明细列表
     *
     * @param storeId       店铺ID
     * @param orderSn       订单号
     * @param startDate     开始日期
     * @param endDate       结束日期
     * @param pageIndex     当前页
     * @param pageSize      每页条数
     * @return 订单列表
     * @throws BusinessException
     */
    List<QsgOrderSharingDetail> getSharingDetailByPage(Long storeId, String orderSn, String startDate, String endDate, int pageIndex, int pageSize) throws BusinessException;

    /**
     * 查询总的分账明细数
     *
     * @param storeId       店铺ID
     * @param orderSn       订单号
     * @param startDate     开始日期
     * @param endDate       结束日期
     * @return 订单总数
     * @throws BusinessException
     */
    int getTotal(Long storeId, String orderSn,String startDate, String endDate) throws BusinessException;

}
